package com.shop.Redis;

import com.shop.Redis.BasePrefix;

/**
 * Created by jiangyunxiong on 2018/5/29.
 */
public class OrderKey extends BasePrefix {

    public static final int ORDER_EXPIRE = 900; //15分钟

    public OrderKey(String prefix) {
        super(prefix);
    }

    /**
     * 防止被外面实例化
     */
    private OrderKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    public static OrderKey getOrder = new OrderKey("order");
    public static OrderKey token = new OrderKey(ORDER_EXPIRE,"token");
}
